package com.bckj.fastboot.iot.api.service;

import com.bckj.fastboot.core.lang.model.PageResult;
import com.bckj.fastboot.iot.common.constant.IotConstants;
import com.bckj.fastboot.iot.common.dto.query.IotDeviceDataQuery;
import com.bckj.fastboot.iot.common.dto.response.IotDeviceDataResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * IotDeviceDataRemoteService
 *
 * @author wfc
 * @date 2025/10/31 16:05
 **/
@FeignClient(value = IotConstants.SERVICE_ID, contextId = "iotDeviceData", path = "iotDeviceData")
public interface IotDeviceDataRemoteService {

    @GetMapping("/page")
    PageResult<IotDeviceDataResponse> page(@SpringQueryMap IotDeviceDataQuery query);

    @GetMapping("/realData")
    IotDeviceDataResponse realData(@SpringQueryMap IotDeviceDataQuery query);

    @GetMapping("/historyData")
    PageResult<IotDeviceDataResponse> historyData(@SpringQueryMap IotDeviceDataQuery query);

    @GetMapping("/lineData")
    IotDeviceDataResponse lineData(@SpringQueryMap IotDeviceDataQuery query);

}
